'use strict';
// alert('这是来自外部js的信息');

var name = 'yangjh';
let age = 18;
const ID = 9999999;
var health = 100;
var height;
// color = 'red';
// let 3d = '3';
console.log(name, age, ID);
// ID = 9999;
// // -age;
// console.log(age);
typeof 5;

if (age > 16) {

    console.log('可使用身份证独立开户');
} else {
    console.log('你处于家长监护期');
}

for (let index = 0; index < 10; index++) {
    console.log(index);

}
age = 21;

while (age <= 45) {
    console.log('熬最晚的夜');
    if (age == 40 || health <= 30) {
        console.log('长最大的黑眼圈', age, health);
        break;
    }
    age++;
    health = health - 9;
}

p('我在定义之前被调用了');

function p(message) {
    console.log(message);
}

p('凡是过往，皆为序章！');

function score(name) {
    score = 99;
    return score;
}

p(score('yangjh'));

// var person = {};
var school = new Object();

var person = {
    'age': 0,
    'name': '小明',
    'iq': 200,
    say: function (message) {
        return message;
    }
};

p(person.age);

for (const key in person) {
    console.log(key, person[key]);
}

let a = [1, 2, 3, 4];
let b = new Array(5, 6, 7, 8);
let c = new Array(10);